package com.bank.backend.boot.base.model.vo;

import com.bank.backend.boot.base.constant.BaseConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author jiaowei
 * @since 2025/3/30 16:31
 */
@Data
public class TradeInfoVO {
    /**
     * 交易id
     */
    private Long id;

    /**
     * 发送账户
     */
    private TradeUAVO sendAccount;

    /**
     * 接收账户
     */
    private TradeUAVO receiveAccount;


    /**
     * 交易金额
     */
    private Double amount;

    /**
     * 交易时间
     */
    @JsonFormat(pattern = BaseConstant.TIME_FORMAT, timezone = "GMT+8")
    private Date tradeTime;

    /**
     * 交易完成时间
     */
    @JsonFormat(pattern = BaseConstant.TIME_FORMAT, timezone = "GMT+8")
    private Date finishTime;

    /**
     * 交易类型
     */
    private Integer type;

    /**
     * 交易位置
     */
    private String location;

    /**
     * 风险等级 0-正常，1-低风险，2-中风险，3-高
     */
    private Integer risk;

    /**
     * 交易是否完成,0-未完成,1-完成
     */
    private Integer finish;

    private Double probability;

    private String description;
}
